<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>传值02</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="app">
    <my-parent></my-parent>
</div>
</body>

<template id="parent">
    <div>
        <h1>父组件</h1>
        <my-child str="哈哈" :num="100", :flag="true" :msg="msg" :obj="{ val: 1000 }" :arr="['a', 'b', 'c']"></my-child>
    </div>
</template>
<template id="child">
    <div>
        <h4>子组件</h4>
        <ul>
            <li> {{ str }} </li>
            <li> {{ num }} </li>
            <li> {{ flag }} </li>
            <li> {{ msg }} </li>
            <li> {{ obj }} </li>
            <li> {{ arr }} </li>
        </ul>
    </div>
</template>

<script>
    const Child = {

    }
</script>
</html>